package com.hulytu.android.adapter;

import android.view.View;

import org.jetbrains.annotations.NotNull;


public interface ViewHolder {

    int NO_POSITION = -1;
    int INVALID_TYPE = -1;

    @NotNull
    View getItemView();

    <V extends View> V findViewById(int viewId);

    /**
     * 获取当前的下标，ListView需要自行设置这个下标
     *
     * @return
     */
    int getAdapterPosition();

}
